import { ref } from 'vue';

export interface NotifyConfig {
  show: boolean;
  cancleText?: string;
  comfirmText?: string;
  type: 'danger' | 'default' | 'warning';
  title: string;
  content: string;
  textAlign?: 'center' | 'left' | 'right';
  onConfirm?: any;
  onCancle?: any;
}
export const notifyConfig = ref<NotifyConfig>({
  show: false,
  cancleText: '',
  comfirmText: '',
  type: 'default',
  content: '',
  title: '',
});
export const notify = (config: NotifyConfig) => {
  notifyConfig.value = config;
};
